class BillItemModel {
  String? sId;
  int? uid;
  String? purchaseOrder;
  int? amount;
  double? actualAmount;
  int? tax;
  double? taxAmount;
  String? channelType;
  String? tranType;
  int? tranTypeInt;
  int? performance;
  String? desc;
  String? createdAt;
  String? sysType;
  int? agentLevel;
  int? vipLevel;
  String? districtCode;
  String? promSeqe;
  bool? isDirect;

  BillItemModel.fromJson(Map<String, dynamic>? json) {
    json ??= {};
    sId = json['_id'];
    uid = json['uid'];
    purchaseOrder = json['purchaseOrder'];
    amount = json['amount'];
    actualAmount = json['actualAmount']?.toDouble();
    tax = json['tax'];
    taxAmount = json['taxAmount']?.toDouble();
    channelType = json['channelType'];
    tranType = json['tranType'];
    tranTypeInt = json['tranTypeInt'];
    performance = json['performance'];
    desc = json['desc'];
    createdAt = json['createdAt'];
    sysType = json['sysType'];
    agentLevel = json['agentLevel'];
    vipLevel = json['vipLevel'];
    districtCode = json['districtCode'];
    promSeqe = json['promSeqe'];
    isDirect = json['isDirect'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['_id'] = sId;
    data['uid'] = uid;
    data['purchaseOrder'] = purchaseOrder;
    data['amount'] = amount;
    data['actualAmount'] = actualAmount;
    data['tax'] = tax;
    data['taxAmount'] = taxAmount;
    data['channelType'] = channelType;
    data['tranType'] = tranType;
    data['tranTypeInt'] = tranTypeInt;
    data['performance'] = performance;
    data['desc'] = desc;
    data['createdAt'] = createdAt;
    data['sysType'] = sysType;
    data['agentLevel'] = agentLevel;
    data['vipLevel'] = vipLevel;
    data['districtCode'] = districtCode;
    data['promSeqe'] = promSeqe;
    data['isDirect'] = isDirect;
    return data;
  }
}
